473,513 Members | 2,403 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to open .pdf file from c# Application - Please help

Hi All,

I want to open a .pdf file from my C# application and show to the user.

I have acrobat reader in the client's computer.

How to do this? Any suggestions please ?

Thanks for your time.

Regards
Anand Ganesh
Nov 15 '05 #1
4 61072
Hi,

You could use System.Diagnostics.Process.Start()
take a look at it in the MSDN

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Anand Ganesh" <an**********@hotmail.com> wrote in message
news:uh**************@TK2MSFTNGP09.phx.gbl...
Hi All,

I want to open a .pdf file from my C# application and show to the user.

I have acrobat reader in the client's computer.

How to do this? Any suggestions please ?

Thanks for your time.

Regards
Anand Ganesh

Nov 15 '05 #2
Alternately, you can host the web browser control in your C# application and
load this .pdf file into the browser control.

"Anand Ganesh" <an**********@hotmail.com> wrote in message
news:uh**************@TK2MSFTNGP09.phx.gbl...
Hi All,

I want to open a .pdf file from my C# application and show to the user.

I have acrobat reader in the client's computer.

How to do this? Any suggestions please ?

Thanks for your time.

Regards
Anand Ganesh

Nov 15 '05 #3
Which function call of the web browser can load the pdf file?

Pengyu.

"Rao TRN" <rt*****@mohomine.com> wrote in message
news:eO**************@TK2MSFTNGP11.phx.gbl...
Alternately, you can host the web browser control in your C# application and load this .pdf file into the browser control.

"Anand Ganesh" <an**********@hotmail.com> wrote in message
news:uh**************@TK2MSFTNGP09.phx.gbl...
Hi All,

I want to open a .pdf file from my C# application and show to the user.

I have acrobat reader in the client's computer.

How to do this? Any suggestions please ?

Thanks for your time.

Regards
Anand Ganesh


Nov 15 '05 #4
Hi,

IMHO it's better if you use Process.Start() it will open acrobat reader and
you will see the document in another window.

Unless that you want to see the pdf inside your application I would go for
the Process.Start method

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Pengyu Hong" <ho**@stat.harvard.edu> wrote in message
news:uW**************@TK2MSFTNGP12.phx.gbl...
Which function call of the web browser can load the pdf file?

Pengyu.

"Rao TRN" <rt*****@mohomine.com> wrote in message
news:eO**************@TK2MSFTNGP11.phx.gbl...
Alternately, you can host the web browser control in your C# application

and
load this .pdf file into the browser control.

"Anand Ganesh" <an**********@hotmail.com> wrote in message
news:uh**************@TK2MSFTNGP09.phx.gbl...
Hi All,

I want to open a .pdf file from my C# application and show to the user.
I have acrobat reader in the client's computer.

How to do this? Any suggestions please ?

Thanks for your time.

Regards
Anand Ganesh



Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2463
by: Bang | last post by:
Hi All, Recently I installed unixODBC(2.2.3) and MySql and MyODBC on Redhat 9.0. After the installation, I am able to use test program isql to connect to the database I created with mysql. ...
6
2570
by: Stefania Scott | last post by:
Hi, I need to find how can I know that a program I am going to shell it is already open. This program uses an csv file that I need to refresh before shelling the program, however if the csv file...
8
3156
by: sudha | last post by:
Hi, To open a word doc from c#, i use the following code : Word.ApplicationClass WordApp = new Word.ApplicationClass (); // give any file name of your choice. object fileName =...
0
1755
by: CM | last post by:
Hi there: I have a web project which can be open and run without problem. I didn't open the web application for a period and during which I didn't modified any IIS items, but now I cannot open any...
4
3232
by: CM | last post by:
Hi there: I have a web project which can be open and run without problem. I didn't open the web application for a period and during which I didn't modified any IIS items, but now I cannot open any...
6
2393
by: Shimon Sim | last post by:
Hi 1) Is it possible to force browser to open image in default windows application? That is what specifies in Folder Options for jpg extension. 2) Also if the 1) is possible is it possible to...
4
18622
by: Fabian | last post by:
Hello, I want to open a Word Document in my C# Programm. I tried this : Word.Application wordapp = new Word.Application(); object path = "TEST.DOC"; object vk_read_only = false; object...
6
3087
by: Moumen VB.NET 2003/2005 Developer | last post by:
How can I detect if a file sitting on a network drive is still open by another application? This application resides on another machine on the network? I am using VB.NET 2003 Your help is...
5
2143
by: Yoshitha | last post by:
Hi I am developing a C#.Net windows application for my project. In that project I have an IDE to work on. The application is similar to Adobe Photoshop. My requirement is as follows. 1) I must...
5
6184
by: Stefano Tonello | last post by:
Hi all, I need to call windows' "open with" dialog from my C# windows form application. After the user selects application, control must return to me (I have to launch directly the process). I...
0
7166
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7386
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7106
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7534
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5689
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3236
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1601
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
459
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.